#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/wait.h>
int main()
{
 pid_t id=fork();
 if(id==0)
 {
   execl("./test.py","test.py",NULL);
   exit(1);
 }
 int status=0;
 pid_t ret=waitpid(id,&status,0);
 if(ret>0)
 {
   printf("exit code:%d\n",WEXITSTATUS(status));
 }
//  printf("hello world!!\n");

  return 0;
}
